package com.isp.org.server.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.isp.org.api.dto.role.SysRole;
import com.isp.org.server.domain.entity.RoleUserEntity;

import java.util.List;
import java.util.Set;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/3/13 09:17
 */
public interface RoleUserMapper extends BaseMapper<RoleUserEntity> {

    List<SysRole> findRolesByUserId(String app, Long userId);

    void deleteInRoleId(Long userId, Set<Long> roleIds);

    List<RoleUserEntity> queryPage(Long id);
}
